<div style='height: 480px; BORDER: 1px inset; overflow-y :scroll;'>
  <table class="table">
    <tr>
      <th  class="text-right">ID：</th>
      <td>{{ user.id }}</td>
    </tr>
    <tr>
      <th width="12%" class="text-right">姓名：</th>
      <td>{{ user.name }}</td>
    </tr>
    <tr>
      <th class="text-right">性别：</th>
      <td>{% if user.gender == True %} 男 {% else %} 女 {% endif %}</td>
    </tr>
    
    <tr>
      <th class="text-right">出生日期：</th>
      <td>
        {{ user.birthday.year }}年
        {{ user.birthday.month }}月
        {{ user.birthday.day }}日
      </td>
    </tr>
    
    <tr>
      <th class="text-right">文化程度：</th>
      <td>
        {% if user.education == '1' %}高职
        {% elif user.education == '2' %}本科
        {% elif user.education == '3' %}硕士
        {% elif user.education == '4' %}博士
        {% endif %}
      </td>
    </tr>
    <tr>
      <th class="text-right">照片：</th>
      <td>
        <img src= "{{ image }}" width="60" height="80" /> 
      </td>
    </tr>
    <tr>
      <th class="text-right">爱好：</th>
      <td>
        {% for i in user.hobby %}
          {% if i == '1' %}篮球
          {% elif i == '2' %}足球
          {% elif i == '3' %}健身
          {% elif i == '4' %}其他
          {% endif %}
        {% endfor %}
      </td>
    </tr>
    
    <tr>
      <th height="60px"  class="text-right">特长：</th>
      <td>{{ user.skill }}</td>
    </tr>
    <tr>
      <th class="text-right">权限：</th>
      <td>
        {% if user.isadmin== True %}管理员
        {% else %}不是管理员{% endif %}
      </td>
    </tr>
    <tr>
      <th class="text-right">操作：</th>
        <td>
          <div class="btn-group">
            <div class="btn-group dropup">
              <button type="button" 
                class="btn btn-warning dropdown-toggle" 
                data-toggle="dropdown" 
                aria-expanded="false">
                权限管理
                <span class="caret"></span>
              </button>
              <lu class="dropdown-menu">
                <li>
                  <a class="dropdown-item" 
                    href="{{ url_for('setadmin', userid=user.id) }}">
                    <span class="glyphicon glyphicon-ok"></span>
                    设为管理员
                  </a>
                </li>
                <li class="divider"></li>
                <li>
                  <a class="dropdown-item" 
                    href="{{ url_for('notadmin', userid=user.id) }}">
                    <span class="glyphicon glyphicon-remove"></span>
                    取消管理员
                  </a>
                </li>
              </lu>
            </div>
          </div>
        </td>
    </tr>
  </table>
</div>